<?php
/* @file show-volume.php
 * @author YangHuanFLC
 * @description php interface for show volume
 */

require_once("helper.php");
if(!InGroup(GROUP_SHOW_VOLUME)){
	MsgBox(ACCESS_DENIED);
	exit();
}
try{

		$dwoo=new Dwoo();
		$tpl=new Dwoo_Template_File('template/show-volume.tpl');
		$data=new Dwoo_Data();

		$name=$_GET['volume'];
		
		$bean=R::findAndExport("problem","volume_name='$name'" );

		$data->assign('name',$name);
		$data->assign('problems', $bean);
		$dwoo->output($tpl,$data);
	}
	catch(Exception $e)
	{
		OJLog("Error in show-volume.php invoking Dwoo:". $e->getMessage());
	}
?>